<?php

namespace app\api\model;


use think\Model;
use app\common\model\User;

class Order extends Model
{
    protected $name = 'order';

    protected $autoWriteTimestamp = 'datetime';

    const ORDER_STATUS_NOPAY = 0;

    const ORDER_STATUS_PAIED = 1;
    const ORDER_STATUS_CLOSED = 2;
    
    # 支付类型, 1: 余额支付
    const PAY_TYPE_BALANCE = 1;
    # 支付类型, 2: 微信支付
    const PAY_TYPE_WECHAT = 'pay_wechat';
    # 支付类型, 3: 支付宝支付
    const PAY_TYPE_ALIPAY = 'pay_alipay';

}